using WCell.Constants.GameObjects;
using WCell.Constants.World;
using WCell.RealmServer.Entities;
using WCell.RealmServer.GameObjects;
using WCell.RealmServer.Global;
using WCell.Util.Graphics;

namespace Kingdoms.Territories
{
    public class ExampleTerritory : Territory
    {
        public ExampleTerritory()
            : base(new ExampleTemplate())
        {
        }
    }

    public class ExampleTemplate : TerritoryTemplate
    {

        public ExampleTemplate() : base(MapId.Kalimdor, GOEntryId.HordeBanner_3)
        {
            Zones.Add(Region.GetZone(ZoneId.Orgrimmar));
            //GOEntryId
        }

        public override int Id
        {
            get { return 1; }
        }

        public override string Name
        {
            get { return "ExampleTerritory"; }
        }

        public override bool IsOpen
        {
            get { return true; }
        }

        public override Vector3 FlagPosition
        {
            get { return new Vector3(32.0f, 37.0f, 10f); }
        }
        public override void FixGOs()
        {
            var flagEntry = GOMgr.GetEntry(GOEntryId.HordeBanner_3);
            flagEntry.AddTemplate(MapId.Kalimdor, FlagPosition);
        }
    }

}